import { reactive } from 'vue';

const useState = (obj) => {

  const state = reactive(obj)

  const setState = (key, value) => {
    state[key] = value
  }

  return [state, setState]
}

export default useState
